﻿// 1.1.7.02. Write a program, which reads two arrays from the console and checks whether they are equal
// (two arrays are equal when they are of equal length and all of their elements, which have the same index, are equal).

using System;

class ComparingArrays
{
    static void Main()
    {
        int[] firstUserArray = new int[5];
        int[] secondUserArray = new int[5];
        bool areArraysEqual = true;

        if (firstUserArray.Length == secondUserArray.Length)
        {
            for (int i = 0; i < firstUserArray.Length; i++) // parallel array reading
            {
                firstUserArray[i] = int.Parse(Console.ReadLine());
                secondUserArray[i] = int.Parse(Console.ReadLine());
            }

            for (int i = 0; i < firstUserArray.Length; i++)
            {
                if (firstUserArray[i] != secondUserArray[i])
                {
                    areArraysEqual = false;
                    break;
                }
            }
        }
        else
        {
            areArraysEqual = false;
        }
        Console.WriteLine(areArraysEqual);
    }
}
